chore(deps): update dependency typescript to v6#351
Conversation
|
📝 WalkthroughWalkthroughTypeScript development dependency updated from version 5.2.2 to 6.0.0 in package.json. This change updates the TypeScript compiler used for type-checking workflows within the project. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
6735d3a to
54d9d17
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 68: package-lock.json is out of sync with the updated TypeScript entry in
package.json; run npm install locally to update/regenerate package-lock.json so
the lockfile matches the new "typescript": "^6.0.0" entry, verify the updated
package-lock.json is added to the commit, and push the commit so the CI pipeline
can pass; reference the package.json "typescript" field and the
package-lock.json file when making this change.
- Line 68: The package.json currently pins "typescript": "^6.0.0" which is
incompatible with ts-jest@29.1.0 (peer <6); update dependencies to resolve this
by either (A) upgrading ts-jest to a version that declares support for
TypeScript 6 (change ts-jest from "ts-jest@29.1.0" to a newer compatible
release) or (B) downgrading the "typescript" entry to a <6.x range (e.g.,
"^5.x") so it satisfies ts-jest@29.1.0; modify package.json accordingly and run
install/test to verify (focus on the "typescript" and "ts-jest" dependency
entries).
- Line 68: Upgrade guidance: Because package.json now pins "typescript":
"^6.0.0", update tsconfig.json to explicitly set rootDir (e.g., "rootDir": "src"
if your sources live there), add required types (e.g., "types": ["node"]), raise
the target to a modern ES (e.g., "target": "es2015" or later) and change
moduleResolution to a supported scheme ("bundler" or "nodenext"); optionally add
"ignoreDeprecations": "6.0" to suppress temporary warnings. Locate and modify
the tsconfig.json compilerOptions keys rootDir, types, target, moduleResolution,
and add ignoreDeprecations as needed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "ts-jest": "^29.1.0", | ||
| "ts-node": "^10.9.2", | ||
| "typescript": "^5.2.2" | ||
| "typescript": "^6.0.0" |
There was a problem hiding this comment.
Pipeline failure: Regenerate package-lock.json.
The CI pipeline failed because package-lock.json is out of sync with the updated TypeScript version in package.json. After verifying compatibility (see other comments), run npm install to regenerate the lockfile.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 68, package-lock.json is out of sync with the updated
TypeScript entry in package.json; run npm install locally to update/regenerate
package-lock.json so the lockfile matches the new "typescript": "^6.0.0" entry,
verify the updated package-lock.json is added to the commit, and push the commit
so the CI pipeline can pass; reference the package.json "typescript" field and
the package-lock.json file when making this change.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check for TypeScript version constraints in ecosystem dependencies
echo "=== Checking peerDependencies of TypeScript ecosystem tools ==="
# Check `@typescript-eslint/eslint-plugin` peer deps
echo -e "\n@typescript-eslint/eslint-plugin@7.9.0:"
npm view `@typescript-eslint/eslint-plugin`@7.9.0 peerDependencies.typescript
# Check ts-jest peer deps
echo -e "\nts-jest@29.1.0:"
npm view ts-jest@29.1.0 peerDependencies.typescript
# Check ts-node peer deps
echo -e "\nts-node@10.9.2:"
npm view ts-node@10.9.2 peerDependencies.typescript
# Check eslint-config-standard-with-typescript peer deps
echo -e "\neslint-config-standard-with-typescript@19.0.1:"
npm view eslint-config-standard-with-typescript@19.0.1 peerDependenciesRepository: ZeroGachis/smartway-react-native-ui
Length of output: 526
Resolve TypeScript 6.0 incompatibility with ts-jest.
ts-jest@29.1.0 does not support TypeScript 6.0—its peer dependency constraint is >=4.3 <6. Either upgrade to a newer version of ts-jest that supports TypeScript 6.0, or use a TypeScript version below 6.0. The other tools (ts-node@10.9.2, eslint-config-standard-with-typescript@19.0.1, and @typescript-eslint/eslint-plugin@7.9.0) are compatible with TypeScript 6.0.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 68, The package.json currently pins "typescript":
"^6.0.0" which is incompatible with ts-jest@29.1.0 (peer <6); update
dependencies to resolve this by either (A) upgrading ts-jest to a version that
declares support for TypeScript 6 (change ts-jest from "ts-jest@29.1.0" to a
newer compatible release) or (B) downgrading the "typescript" entry to a <6.x
range (e.g., "^5.x") so it satisfies ts-jest@29.1.0; modify package.json
accordingly and run install/test to verify (focus on the "typescript" and
"ts-jest" dependency entries).
🧩 Analysis chain
🌐 Web query:
TypeScript 6.0.0 release notes breaking changes
💡 Result:
TypeScript 6.0.0 introduces several breaking changes and deprecations as a transition release preparing for TypeScript 7.0 (native Go-based compiler). It maintains API compatibility with 5.9 but changes defaults and deprecates legacy options. Key breaking changes and default shifts: - rootDir defaults to . (tsconfig directory) instead of inferred from sources. Set explicitly if sources are in subdirs like src/. - types defaults to [] (no auto-inclusion of @types packages). Explicitly list needed types (e.g., ["node"]) for build performance gains (20-50%). - Deprecated target: es5 (lowest now es2015/es2025 recommended). - Deprecated --downlevelIteration. - Deprecated --moduleResolution node/node10 (migrate to nodenext or bundler) and classic (removed). - Deprecated --baseUrl (use paths mappings without it). - Deprecated --esModuleInterop false / --allowSyntheticDefaultImports false. - Deprecated --alwaysStrict false (strict mode closer to default). - Deprecated outFile. - Deprecated legacy module syntax for namespaces, import asserts {}, no-default-lib directives. - Specifying CLI files with existing tsconfig.json now errors. - Behavioral: strict/use strict closer to always on; moduleResolution bundler with commonjs; type ordering may differ (use --stableTypeOrdering flag). Deprecations can be ignored in 6.0 via "ignoreDeprecations": "6.0" in tsconfig.json but will be removed in 7.0. Address warnings before upgrading further. Official docs recommend explicit tsconfig settings reflecting modern practices (target es2025, bundler resolution, explicit types). For full details, see official handbook: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
Citations:
- 1: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html
- 2: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-rc
- 3: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/
- 4: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta
- 5: https://truesolvers.com/articles/typescript-60-breaking-changes-what-breaks-and-what-already-helps
- 6: TypeScript 6.0 Iteration Plan microsoft/TypeScript#63085
- 7: https://gist.github.com/privatenumber/3d2e80da28f84ee30b77d53e1693378f
Update tsconfig.json for TypeScript 6.0.0 breaking changes.
TypeScript 6.0.0 introduces significant defaults changes and deprecations:
rootDirnow defaults to.(tsconfig directory) instead of being inferred; set explicitly if sources are in subdirectories likesrc/typesnow defaults to[](no auto-inclusion of@typespackages); explicitly list required types like["node"]- Deprecated:
target: es5(use es2015 or later),--moduleResolution node/classic(migrate tobundlerornodenext),--baseUrl,--esModuleInterop false,--allowSyntheticDefaultImports false
Update tsconfig.json with explicit settings for rootDir, types, target, and moduleResolution to align with modern practices. Deprecation warnings can be suppressed temporarily with "ignoreDeprecations": "6.0" but will be removed in TypeScript 7.0.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 68, Upgrade guidance: Because package.json now pins
"typescript": "^6.0.0", update tsconfig.json to explicitly set rootDir (e.g.,
"rootDir": "src" if your sources live there), add required types (e.g., "types":
["node"]), raise the target to a modern ES (e.g., "target": "es2015" or later)
and change moduleResolution to a supported scheme ("bundler" or "nodenext");
optionally add "ignoreDeprecations": "6.0" to suppress temporary warnings.
Locate and modify the tsconfig.json compilerOptions keys rootDir, types, target,
moduleResolution, and add ignoreDeprecations as needed.
This PR contains the following updates:
^5.2.2->^6.0.0Release Notes
microsoft/TypeScript (typescript)
v6.0.3: TypeScript 6.0.3Compare Source
For release notes, check out the release announcement blog post.
Downloads are available on:
v6.0.2: TypeScript 6.0Compare Source
For release notes, check out the release announcement blog post.
Downloads are available on:
v5.9.3: TypeScript 5.9.3Compare Source
Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.
For release notes, check out the release announcement
Downloads are available on:
v5.9.2: TypeScript 5.9Compare Source
Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.
For release notes, check out the release announcement
Downloads are available on:
v5.8.3: TypeScript 5.8.3Compare Source
Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.
For release notes, check out the release announcement.
Downloads are available on:
v5.8.2: TypeScript 5.8Compare Source
For release notes, check out the release announcement.
Downloads are available on:
v5.7.3: TypeScript 5.7.3Compare Source
For release notes, check out the release announcement.
Downloads are available on npm
v5.7.2: TypeScript 5.7Compare Source
For release notes, check out the release announcement.
Downloads are available on:
v5.6.3: TypeScript 5.6.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.6.2: TypeScript 5.6Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.5.4: TypeScript 5.5.4Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.5.3: TypeScript 5.5.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.5.2: TypeScript 5.5Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.4.5: TypeScript 5.4.5Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.4.4: TypeScript 5.4.4Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.4.3: TypeScript 5.4.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.4.2: TypeScript 5.4Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.3.3: TypeScript 5.3.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.3.2: TypeScript 5.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 06:59 AM, only on Monday ( * 0-6 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.